package 进阶.序列化;

import java.io.*;

public class demo02_Obj {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
        ObjectInputStream objectInputStream = new ObjectInputStream(new FileInputStream("d:/a.txt"));

        Object o = objectInputStream.readObject();
        Object p = objectInputStream.readObject();
        Object q = objectInputStream.readObject();
//        Object r = objectInputStream.readObject();

        objectInputStream.close();

        Person a = (Person)o;
        Person b = (Person)p;
        Person c = (Person)q;
//        Person d = (Person)r;

        System.out.println(a);
        System.out.println(b);
        System.out.println(c);
//        System.out.println(d);


    }

}
